package ${package.Entity};

<#list table.importPackages as pkg>
import ${pkg};
</#list>
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import lombok.Data;

 /**
 * All rights Reserved, Designed By 哈尔滨工业大学软件工程股份有限公司
 * 
 * @Title: ${table.comment!} Entity实体类
 * @Package 
 * @Description: 
 * @author: ${author}
 * @date: ${date}
 */
@Data
@TableName("${table.name}")
public class ${entity} implements Serializable {

    private static final long serialVersionUID = 1L;

<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>
    <#if field.comment!?length gt 0>
    // ${field.comment}
    </#if>
    <#if field.keyFlag>
    @TableId(value="${field.propertyName}",type = IdType.ASSIGN_UUID)
    @NotBlank(message = "${field.comment} 不能为空")
    </#if>
    private ${field.propertyType} ${field.propertyName};
    
</#list>

}